import request from '@/utils/request'

// 查询用户购买次数卡列表
export function listBalanceNum(query) {
  return request({
    url: '/keep/balanceNum/list',
    method: 'get',
    params: query
  })
}

// 查询用户购买次数卡详细
export function getBalanceNum(id) {
  return request({
    url: '/keep/balanceNum/' + id,
    method: 'get'
  })
}

// 新增用户购买次数卡
export function addBalanceNum(data) {
  return request({
    url: '/keep/balanceNum',
    method: 'post',
    data: data
  })
}

// 修改用户购买次数卡
export function updateBalanceNum(data) {
  return request({
    url: '/keep/balanceNum',
    method: 'put',
    data: data
  })
}

// 删除用户购买次数卡
export function delBalanceNum(id) {
  return request({
    url: '/keep/balanceNum/' + id,
    method: 'delete'
  })
}
